package pearson.automation;

import org.testng.annotations.BeforeClass;

public class BasePearsonTestWithPermissionsRW 
                    extends BasePearsonTestWithPermissionPreconditions {
    protected final String userId = userData.getProperty("collaboratorRWid");
    protected String login = userData.getProperty("collaboratorRWlogin");
    protected String password = userData.getProperty("collaboratorRWpassword");

    @BeforeClass(groups = "PermissionsRW" )
    public void roPrecondition() {
        courseNamePrefix = "R/W Collaboration Autotest";
        addPermissions();
        addAssets(userId, login, password);
    }

    public void setCredentials(String userLogin, String userPassword) {
        login = userLogin;
        password = userPassword;
    }
}
